﻿<DockPanel x:Class="CardPlay.Client.Views.CommandPanel"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:Controls="clr-namespace:CardPlay.Client.Controls" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <TextBlock DockPanel.Dock="Top" Text="{Binding Prompt}" FontFamily="Segoe UI" FontSize="16" Foreground="DodgerBlue"
               TextWrapping="Wrap" VerticalAlignment="Top" Padding="4" Margin="0,0,0,12" />
    <ItemsControl ItemsSource="{Binding Options}">
        <ItemsControl.ItemTemplate>
            <DataTemplate>
                <Controls:CommandLink Instruction="{Binding Instruction}" Description="{Binding Description}" Command="{Binding Action}" Margin="0,0,0,4"/>
            </DataTemplate>
        </ItemsControl.ItemTemplate>
    </ItemsControl>
</DockPanel>
